<?php defined('_JEXEC') or die('Restricted access'); 
JHTML::_('behavior.tooltip'); 
JHTML::_('behavior.formvalidation');
$document =& JFactory::getDocument();
$lang =& JFactory::getLanguage();
$row=$this->Product;
$document->setTitle( $row->name );
$document->setDescription( 'Properties, '.$row->name.' : '.$row->name.' en '.$row->name.' : '.$row->nombre_provincia );
$document->setMetadata('keywords', 'properties, '.str_replace(' ',', ',$row->name_category).' , '.$row->name.' , '.$row->name_locality.' , '.$row->name_state);

$component = JComponentHelper::getComponent( 'com_properties' );
$params = new JParameter( $component->params );
$ActivarContactar=$params->get('ActivarContactar');
$ActivarReservas=$params->get('ActivarReservas');
$ActivarMapa=$params->get('ActivarMapa');
$ActivarTabs=$params->get('ActivarTabs');
$ActivarPanoramica=$params->get('ActivarPanoramica');
$SimbolPrice=$params->get('SimbolPrice');
$PositionPrice=$params->get('PositionPrice');
$currencyformat=$params->get('FormatPrice');

if(!JRequest::getVar('Itemid')){$Itemid = 0;}
else{$Itemid = JRequest::getVar('Itemid');}

$id = JRequest::getVar('id', 0, '', 'int');

$catid = JRequest::getVar('catid', 0, '', 'int');
?>	
 

 

<?php

$watermark=JText::_('DETAILS_MARKET'.$row->available).'-'.$lang->getTag().'.png';
?>
<div id="print_page" style="width:600px; text-align:center; border: 1px solid #CCCCCC; ">
<div class="tituloProduct" style="float:left; width:100%;"><?php echo $row->name;?></div>

		<div id="theImages">
	
<?php
$imageCaption='';
 if($row->image1){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image1;?>','1');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image1;?>" alt="222"/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image1desc.'</div>'; }?>	
<?php if($row->image2){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image2;?>','2');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image2;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image2desc.'</div>'; }?>
<?php if($row->image3){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image3;?>','3');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image3;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image3desc.'</div>'; }?>	
<?php if($row->image4){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image4;?>','4');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image4;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image4desc.'</div>'; }?>
<?php if($row->image5){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image5;?>','5');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image5;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image5desc.'</div>'; }?>
<?php if($row->image6){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image6;?>','6');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image6;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image6desc.'</div>'; }?>
<?php if($row->image7){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image7;?>','7');return false"><img style="opacity: 1;" src="images/properties/peques/peque_<?php echo $row->image7;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image7desc.'</div>'; }?>	
<?php if($row->image8){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image8;?>','8');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image8;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image8desc.'</div>'; }?>
<?php if($row->image9){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image9;?>','9');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image9;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image9desc.'</div>'; }?>	
<?php if($row->image10){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image10;?>','10');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image10;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image10desc.'</div>'; }?>
<?php if($row->image11){?>
				<a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image11;?>','11');return false"><img src="images/properties/peques/peque_<?php echo $row->image11;?>" alt=""/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image11desc.'</div>'; }?>		
<?php if($row->image12){?>
                <a href="#" onclick="showPreview('<?php echo JURI::base();?>images/properties/<?php echo $row->image12;?>','12');return false"><img style="opacity: 0.75;" src="images/properties/peques/peque_<?php echo $row->image12;?>" alt="111"/></a>
<?php $imageCaption.='<div class="imageCaption">'.$row->image12desc.'</div>'; }?>
				<!-- End thumbnails -->			

</div>
<div style="clear: both;"></div>



<!--END IMAGE TABLE-->	

<div class="detalleProduct" style="width:100%; float:left; margin:10px !important;">
<?php echo $row->description; ?><br />
<?php
if($row->price!=0){
$number = $row->price;
		if ($currencyformat==0) {
			$formatted_price = number_format($number);
		} else if ($currencyformat==1) {
			$formatted_price = number_format($number, 2,".",",");
		} else if ($currencyformat==2) {
			$formatted_price = number_format($number, 0,",",".");
		} else if ($currencyformat==3) {			
			$formatted_price = number_format($number, 2,",",".");
		}
if($PositionPrice==0){
$showprice = '<tr><td align="right">'.JText::_('Price') .' :</td><td align="left">'. $SimbolPrice.' '. $formatted_price.'</td></tr>'; 
}else{
$showprice = '<tr><td align="right">'.JText::_('Price') .' :</td><td align="left">'. $formatted_price .' '. $SimbolPrice.'</td></tr>';
}
//echo '<br />';
}
?>
<table>
<?php echo $showprice; ?>
<?php if($row->adress){echo '<tr><td align="right">'.JText::_('Adress') .' :</td><td align="left">'. $row->adress.'</td></tr>';} ?>
<?php if($row->years){echo '<tr><td align="right">'.JText::_('Years') .' :</td><td align="left"> '. $row->years.'</td></tr>';} ?>
<?php if($row->bedrooms){echo '<tr><td align="right">'.JText::_('Bedrooms') .' :</td><td align="left"> '. $row->bedrooms.'</td></tr>';} ?>
<?php if($row->bathrooms){echo '<tr><td align="right">'.JText::_('Bathrooms') .' :</td><td align="left"> '. $row->bathrooms.'</td></tr>';} ?>
<?php if($row->garage){echo '<tr><td align="right">'.JText::_('Garage') .' :</td><td align="left"> '. $row->garage.'</td></tr>';} ?>
<?php if($row->area){echo '<tr><td align="right">'.JText::_('Total Area') .' :</td><td align="left"> '. $row->area.' '.JText::sprintf('Simbol Metric').'</td></tr>';} ?>
<?php if($row->covered_area){echo '<tr><td align="right">'.JText::_('Covered Area') .' :</td><td align="left"> '. $row->covered_area.' '.JText::sprintf('Simbol Metric').'</td></tr>';} ?>
<?php if($row->available){echo '<tr><td align="right">'.JText::_('DETAILS MARKET').' :</td><td align="left"> '.JText::_('DETAILS_MARKET'.$row->available).'</td></tr>';} ?>

<?php if($row->extra1){echo '<tr><td align="right">'.JText::_('extra1') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra2){echo '<tr><td align="right">'.JText::_('extra2') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra3){echo '<tr><td align="right">'.JText::_('extra3') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra4){echo '<tr><td align="right">'.JText::_('extra4') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra5){echo '<tr><td align="right">'.JText::_('extra5') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra6){echo '<tr><td align="right">'.JText::_('extra6') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra7){echo '<tr><td align="right">'.JText::_('extra7') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra8){echo '<tr><td align="right">'.JText::_('extra8') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra9){echo '<tr><td align="right">'.JText::_('extra9') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>
<?php if($row->extra10){echo '<tr><td align="right">'.JText::_('extra10') .' :</td><td align="left"><img src="'.JURI::base().'components/com_properties/includes/img/icon-16-checkin.png" /></td></tr>';} ?>

<?php if($row->extra11){echo '<tr><td align="right">'.JText::_('extra11') .' :</td><td align="left">'. $row->extra11.'</td></tr>';} ?>
<?php if($row->extra12){echo '<tr><td align="right">'.JText::_('extra12') .' :</td><td align="left">'. $row->extra12.'</td></tr>';} ?>
<?php if($row->extra13){echo '<tr><td align="right">'.JText::_('extra13') .' :</td><td align="left">'. $row->extra13.'</td></tr>';} ?>
<?php if($row->extra14){echo '<tr><td align="right">'.JText::_('extra14') .' :</td><td align="left">'. $row->extra14.'</td></tr>';} ?>
<?php if($row->extra15){echo '<tr><td align="right">'.JText::_('extra15') .' :</td><td align="left">'. $row->extra15.'</td></tr>';} ?>
<?php if($row->extra16){echo '<tr><td align="right">'.JText::_('extra16') .' :</td><td align="left">'. $row->extra16.'</td></tr>';} ?>
<?php if($row->extra17){echo '<tr><td align="right">'.JText::_('extra17') .' :</td><td align="left">'. $row->extra17.'</td></tr>';} ?>
<?php if($row->extra18){echo '<tr><td align="right">'.JText::_('extra18') .' :</td><td align="left">'. $row->extra18.'</td></tr>';} ?>
<?php if($row->extra19){echo '<tr><td align="right">'.JText::_('extra19') .' :</td><td align="left">'. $row->extra19.'</td></tr>';} ?>
<?php if($row->extra20){echo '<tr><td align="right">'.JText::_('extra20') .' :</td><td align="left">'. $row->extra20.'</td></tr>';} ?>
</table>
</div>

 <div style="clear:both"></div>





<br />

<div style="clear: both;"></div>
<br style="clear: both;" /> 
<a href="#" onclick="window.close()"><?php echo JText::_('Close Window'); ?></a>&nbsp;|&nbsp;<a href="javascript:;" onclick="window.print(); return false"><?php echo JText::_('Print'); ?></a><br><br>
</div>
